/*
 * @Description: 
 * @Author: HKH
 * @Date: 2024-09-04 11:01:28
 * @LastEditors: HKH
 * @LastEditTime: 2024-09-04 15:44:03
 */
public class AverageCalculator {
    public static void getAvg(int[]  arr) {
        int[] numbers = {64, 64, 64, 64,64}; // 初始化数组
        double avg  = 0.0; // 初始化总和为0
        double sum  = 0.0;
        for(int i=0;i<arr.length;i++){
            System.out.println(arr[i]);
            sum+=arr[i];
        }
        System.out.println("sum="+sum);
        return;
    }
}